package io.kiki.sba.registry.api;

import javax.ws.rs.client.WebTarget;
import java.net.InetSocketAddress;


public interface Channel {


    InetSocketAddress getRemoteAddress();


    InetSocketAddress getLocalAddress();

    boolean isConnected();


    Object getAttribute(String key);


    void setAttribute(String key, Object value);


    Object getConnAttribute(String key);


    void setChannelAttribute(String key, Object value);


    WebTarget getWebTarget();

    void close();
}
